from flask import render_template, flash
from . import main
from flask.ext.login import current_user


@main.route('/')
def index():
    if current_user.is_authenticated():
        flash('Ulogiran si')
    else:
        flash('Nisi ulogiran')
    return render_template('index.html')
